 <{extends file="<{$tempdir}>/public/wxsite.html"}>  
<{block name=extendcss}> 
 <link rel="stylesheet"  href="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/css/gift.css">
<{/block}>
 <{block name=extendjs}> 
  <script src="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/js/template.min.js"></script>    
<{/block}>
<{block name=myScrolljs}>
<script> 
		var myScroll;
function loaded() {
	myScroll = new iScroll('wrapper', {
		useTransform: false,
		onBeforeScrollStart: function (e) {
			var target = e.target;
			while (target.nodeType != 1) target = target.parentNode;

			if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA')
				e.preventDefault();
		}
	});
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); 
document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
</script> 
 	 
<script> 
	function savereg(){  
		   $('#loading').show();
      var info = {'phone':$('#phone').val(),'phoneyan':$('#phoneyan').val(),'tname':$('#uname').val(),'email':$('#email').val(),'pwd':$('#pwd').val(),'pwd2':$('#spwd').val(),'checklogin':'html5'};
		  var url = '<{ofunc type=url link="/member/saveregester/random/@random@/datatype/json"}>'; 
		  var backdata = ajaxback(url,info); 
		  if(backdata.flag == false){ 
					var goPrevUrl = $.cookie('wxCurUrl');
 					 if( goPrevUrl != null && goPrevUrl != '' && goPrevUrl != undefined ){
						window.location.href= goPrevUrl;
					 }else{
						window.location.href= siteurl+'/index.php?ctrl=wxsite&action=member';
					}
		  }else{
		  	$('#loading').hide();
		     Tmsg(backdata.content);
		  }
		  
	}
</script>
<{/block}>
 <{block name=hearnav}>
<div class="toptitCon">
 <div class="toptitBox">
  <div class="toptitL"><i></i></div>
  <div class="toptitC"><h3>注册</h3></div>
 </div>
</div>
<{/block}>
<{block name=sitetitle}><{$sitename}><{/block}>
<{block name=blockcontent}> 
 <div id="wrapper" style="top:40px;"> 
	<div id="scroller">
		
 
 
<div class="signinregistertit">
 <ul>
  <li   onclick="dolink('<{ofunc type=url link="/wxsite/login"}>');">账号登录</li>
  <li class="ainregaA">账号注册</li>
 </ul>
</div>
<!--帐号注册-->
<div class="signininput">
 <ul>
  <li><i class="signinuser"></i><input type="text" id="uname" value="" placeholder="请输入用户名"></li>
  <li><i class="signinpho"></i><input type="text" id="phone" value="" placeholder="请输入手机号"></li>
    <li id="showgetcode" class="signmehide"><i class="signinmess"></i><input type="text" name="phoneyan" id="phoneyan"   value="" placeholder="输入短信验证码"><input type="button"  onclick="clickyanzheng();"   time="0" id="dosendbtn"  value="发送到手机" class="signmeinput"></li>

  <li><i class="signinpassw"></i><input type="password" id="pwd" value="" placeholder="请输入密码"></li>
  <li><i class="signinqrpas"></i><input type="password" id="spwd"  value="" placeholder="请确认密码"></li>
  <li class="signmehide"><i class="signinmess"></i><input type="text"  placeholder="输入短信验证码"><input type="button" value="剩余120秒" class="signmeinput signmebg1"></li>
 </ul>
</div>
<div class="intexchabutt"><input type="button" value="立即注册" onclick="savereg();" class="intexbg1"><span class="signintyxy"><i class="signinbut"></i><input type="checkbox"><b>点击立即注册即表示同意用户注册协议</b></span></div>




		 <div style="height:10px;"></div>
	</div>
</div>
<script>
 var regestercode = '<{$regestercode}>';
 $(function(){    
    if(regestercode ==  1){
    	$('#showgetcode').show();
     
    } 
}); 
function noshow(msg){  
    	Tmsg(msg);
}
//获取手机验证码
function clickyanzheng(){ 
 
        var tempurl = siteurl+'/index.php?ctrl=member&action=regesterphone&random=@random@&phone=@phone@';
   	 	     tempurl = tempurl.replace('@random@', 1+Math.round(Math.random()*1000)).replace('@phone@',$('#phone').val());
	         $.getScript(tempurl);    
	 
}
function showsend(phone,time){  
  	    $('input[name="phone"]').val(phone);
        $('#dosendbtn').attr('time',time);
        setTimeout("btntime();",1000);   
} 
	function  btntime(){
  
	   var nowtime = Number($('#dosendbtn').attr('time'));
	   if(nowtime > 0){
	      $('#dosendbtn').attr('disabled',true);
	      $('#dosendbtn').addClass('signmebg1');
	      var c = Number(nowtime)-1;
	       $('#dosendbtn').attr('time',c);
	       var  mx = 120-(120 - Number(c));
	        $('#dosendbtn').attr('value','剩余'+mx+'秒');
	         setTimeout("btntime();",1000);
	   }else{
	   	 $('#dosendbtn').attr('disabled',false);
		  $('#dosendbtn').removeClass('signmebg1');
	   	 $('#dosendbtn').attr('value','重新发送');
     }
  
}
	
	
	

 </script>
 
<{/block}>